function T = static_g1_tt(T, y, x, params)
% function T = static_g1_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 23);

T = bbeffectivedemandmatchirf_order4.static_resid_tt(T, y, x, params);

T(15) = getPowerDeriv(y(1)*T(3)*T(4),(1-params(9))/params(12),1);
T(16) = getPowerDeriv(T(5),params(12)/(1-params(9)),1);
T(17) = getPowerDeriv(T(6)/y(8),1-1/params(12),1);
T(18) = params(8)/2*1/y(10)*2*(T(7)-params(3));
T(19) = getPowerDeriv(y(21)*y(10),params(1),1);
T(20) = params(8)/2*2*(T(7)-params(3))*(-y(9))/(y(10)*y(10));
T(21) = getPowerDeriv(y(27)*y(12),1-params(1),1);
T(22) = 1/params(38);
T(23) = getPowerDeriv(y(23),1-params(9),1);

end
